package demo01;

public class Main {
    public static void main(String[] args) {
        ConcereteComponent c=new ConcereteComponent();
        ConcreteDecoratorA d1=new ConcreteDecoratorA();
        ConcreteDecoratorB d2=new ConcreteDecoratorB();
        d1.setComponent(c);
        d2.setComponent(d1);
        d2.Operation();
    }
}
